package com.sky.mapper.admin;


import com.sky.anno.AutoFill;
import com.sky.dto.SetmealDTO;
import com.sky.enumeration.OperationType;
import com.sky.pojo.Dish;
import com.sky.pojo.Setmeal;
import com.sky.pojo.SetmealDish;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:篍
 * @Date: 2025/08/17 21:10
 * @Description:
 */
@Mapper
public interface SetMealMapper {

    List<SetmealVO> page(@Param("name") String name, @Param("categoryId") Integer categoryId, @Param("status") Integer status);

    @AutoFill(OperationType.INSERT)
    void add(Setmeal setmeal);

    Setmeal findById(Long id);

    void deleteByIds(@Param("ids") List<Long> ids);

    @AutoFill(OperationType.UPDATE)
    void update(Setmeal setmeal);


}
